<#assign ctx=springMacroRequestContext.contextPath />
<#include "/macro/publicMacro.ftl">

<@header title="查看用户角色授权">

</@header>

<@body>
    <h2 class="module-title">查看用户角色授权</h2>

    <div class="alert alert-primary" role="alert">
        <nav class="nav">
            <#--<button class="btn btn-info" onclick="javascript: history.back(-1);return false;">返回</button>-->
            <a class="btn btn-info btn-sm" href="${ctx}/user/list" role="button" aria-pressed="true" style="height: 40px; margin-top: 20px">返回</a>

            <span style="margin-right: 50px; margin-left: 50px">用户别称<h4>${user.nickName}</h4></span>
            <span style="margin-right: 50px">用户名称<h3>${user.userName}</h3></span>
            <span style="margin-right: 50px">用户邮箱<h3>${user.maskEmail}</h3></span>
            <span style="margin-right: 50px" >用户手机号<h3>${user.maskPhone}</h3></span>
        </nav>
    </div>

    <div class="alert alert-info" role="alert">
        <ul class="list-group">
            <#list roleList as role>
                <li class="list-group-item">
                    <#if roleMap["${role.id}"]??>
                        <div class="form-check form-check-inline">
                            <#--<input type="checkbox" class="form-check-input" name="roles" disabled id="role${role.id}" value="${role.id}" checked/>-->
                            <label class="form-check-label" for="role${role.id}">${role.name}</label>
                        </div>
                    </#if>
                </li>
            </#list>
        </ul>
    </div>
</@body>

<@footer>
</@footer>